package com.hsmpay.utils;

import java.util.HashMap;
import java.util.Map;

public class ZhongLanResCode {

    private static Map<String,String> ZhongLanCodeMap = new HashMap<String,String>();
    static{
        ZhongLanCodeMap.put("00","交易成功");
        ZhongLanCodeMap.put("01","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("03","无效商户");
        ZhongLanCodeMap.put("04","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("05","持卡人认证失败");
        ZhongLanCodeMap.put("10","部分承兑");
        ZhongLanCodeMap.put("11","交易成功");
        ZhongLanCodeMap.put("12","无效交易");
        ZhongLanCodeMap.put("13","无效金额");
        ZhongLanCodeMap.put("14","无效卡号,请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("15","此卡无对应发卡方");
        ZhongLanCodeMap.put("21","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("22","操作有误");
        ZhongLanCodeMap.put("25","没有原始交易,请联系发卡方");
        ZhongLanCodeMap.put("30","报文格式错误");
        ZhongLanCodeMap.put("34","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("38","密码错误次数超限,请与发卡方联系");
        ZhongLanCodeMap.put("40","发卡方不支持的交易类型");
        ZhongLanCodeMap.put("41","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("43","请持卡人与发卡银行联系");
        ZhongLanCodeMap.put("45","不支持降级交易,请插卡消费");
        ZhongLanCodeMap.put("51","可用余额不足");
        ZhongLanCodeMap.put("54","该卡已过期,请联系发卡行");
        ZhongLanCodeMap.put("55","不正确的密码");
        ZhongLanCodeMap.put("57","不允许此交易");
        ZhongLanCodeMap.put("58","不允许此交易");
        ZhongLanCodeMap.put("59","卡片校验失败");
        ZhongLanCodeMap.put("61","交易金额超限");
        ZhongLanCodeMap.put("62","受限制的卡");
        ZhongLanCodeMap.put("64","交易金额与原交易不匹配");
        ZhongLanCodeMap.put("65","超出消费次数限制");
        ZhongLanCodeMap.put("68","交易超时,请重试");
        ZhongLanCodeMap.put("75","密码错误次数超限");
        ZhongLanCodeMap.put("90","系统日切,请稍后重试");
        ZhongLanCodeMap.put("91","发卡方状态不正常,请稍后重试");
        ZhongLanCodeMap.put("92","发卡方线路异常,请稍后重试");
        ZhongLanCodeMap.put("94","拒绝,重复交易,请稍后重");
        ZhongLanCodeMap.put("96","拒绝,交换中心异常,请稍后重试");
        ZhongLanCodeMap.put("97","终端未登记");
        ZhongLanCodeMap.put("98","发卡方超时");
        ZhongLanCodeMap.put("99","PIN格式错,请重新签到");
        ZhongLanCodeMap.put("A0","MAC校验错");
        ZhongLanCodeMap.put("A2","交易成功,请向发卡行确认");
        ZhongLanCodeMap.put("A4","交易成功,请向发卡行确认");
        ZhongLanCodeMap.put("A5","交易成功,请向发卡行确认");
        ZhongLanCodeMap.put("A6","交易成功,请向发卡行确认");
        ZhongLanCodeMap.put("A7","拒绝,交换中心异常,请稍后重试");
    }

    public static String getZhongLanCode(String code){
        return ZhongLanCodeMap.get(code);
    }


}
